package com.example.lemis.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 管理系统用户
 * </p>
 *
 * @author lxp
 * @since 2025-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("admin")
@ApiModel(value="Admin对象", description="管理系统用户")
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("perm_group_id")
    private Long permGroupId;

    @TableField("creator_id")
    private Long creatorId;

    @TableField(value = "is_deleted", fill = FieldFill.INSERT)
        @TableLogic
    private Boolean deleted;

    @TableField("name")
    private String name;

    @TableField("employee_number")
    private String employeeNumber;

    @TableField("password")
    private String password;

    @TableField("sex")
    private Boolean sex;

    @TableField(value = "register_time", fill = FieldFill.INSERT)
    private LocalDateTime registerTime;

    @TableField(value = "last_login_time", fill = FieldFill.UPDATE)
    private LocalDateTime lastLoginTime;

    @TableField("remark")
    private String remark;


}
